package com.vy.stl.mapper;

import com.vy.stl.entity.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @create: 2025/08/29 13:52
 * @description:
 */
public interface MemberMapper {
    /**
     * 条件查询
     * @param member
     * @return
     */
    List<Member> select(Member member);

    /**
     * 根据手机号查询会员信息
     * @param phone
     * @return
     */
    Member selectByPhone(@Param("phone") String phone);

    /**
     * 创建会员
     * @param member
     * @return
     */
    int insert(Member member);

    /**
     * 根据id查询会员信息
     * @param id
     * @return
     */
    Member selectByParimaryKey(@Param("id") Integer id);

    /**
     * 修改个人信息
     * @param member
     * @return
     */
    int edit(Member member);

    /**
     * 根据id删除会员信息
     * @param id
     * @return
     */
    int deleteById(@Param("id") Integer id);
}
